﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

/**
 * 创建时间：2014/11/15 20:48:32
 * 作者：yong.blackcore
 * Email：itblackhole@outlook.com
 * QQ：50404503
 */
namespace WCYCReader.Utility
{
    public sealed class PivotItemHelper
    {
        public static Thickness PivotItemHeaderMargin = new Thickness(-10, -10, 10, 20);

        public static SolidColorBrush PivotItemHeaderForeground = new SolidColorBrush(Helper.HexToColor("#ffffffff"));

        public static double PivotItemHeaderFontSize = 45;

        public static FontFamily PivotItemHeaderFontFamily = new FontFamily("Microsoft Yahei");

        public TextBlock CreateTextBlock(string headerText)
        {
            TextBlock txtHeader = new TextBlock()
            {
                Margin = PivotItemHelper.PivotItemHeaderMargin,
                FontFamily = PivotItemHelper.PivotItemHeaderFontFamily,
                FontSize = PivotItemHelper.PivotItemHeaderFontSize,
                Foreground = PivotItemHelper.PivotItemHeaderForeground,
                Text = headerText
            };
            return txtHeader;
        }

        public TextBlock CreateTextBlock(string headerText, Thickness thickness, double fontsize, Color foregroud)
        {
            TextBlock txtHeader = new TextBlock()
            {
                Margin = PivotItemHelper.PivotItemHeaderMargin,
                FontFamily = PivotItemHelper.PivotItemHeaderFontFamily,
                FontSize = PivotItemHelper.PivotItemHeaderFontSize,
                Foreground = PivotItemHelper.PivotItemHeaderForeground,
                Text = headerText
            };
            return txtHeader;
        }
    }
}
